Fix csd decorations
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jul 2015 13:59:18 +0000 (09:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jul 2015 13:59:18 +0000 (09:59 -0400)
By accident, commit b9b17c3c2a434983452561c3 removed one line
that wasn't unused, but important for hiding close buttons on
dialogs. Bring it back.

gtk/gtkheaderbar.c

index 21f8fd9372a3ebde1488a3db9fb33fa7c63323d6..dcb8e8a5183b081f3e83c906ec01be12a3d2f657 100644 (file)
@@ -296,6 +296,9 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
       priv->titlebar_end_separator = NULL;
     }
 
+  if (!priv->shows_wm_decorations)
+    return;
+
   direction = gtk_widget_get_direction (widget);
 
   g_object_get (gtk_widget_get_settings (widget),